//
//  BKButton.m
//  FastBee
//
//  Created by mac on 16/9/10.
//  Copyright © 2016年 xbk. All rights reserved.
//

#import "BKButton.h"
#import "UIView+MDRExtension.h"

@implementation BKButton

- (instancetype)initWithFrame:(CGRect)frame{
    
    if(self = [super initWithFrame:frame]){
        
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}
- (void)layoutSubviews{
    
    [super layoutSubviews];
    
    self.imageView.y = 0;
    self.imageView.x = 15;
    self.imageView.height = 40;
    self.imageView.width = 50;
    
    self.titleLabel.x = 0;
    self.titleLabel.y = self.imageView.height;
    self.titleLabel.height = self.width - self.imageView.height;
    self.titleLabel.width = self.width;
    
    
}

@end
